package test;

import keter.starter.demo.Demo;
import keter.starter.service.annotation.DemoService;
import org.springframework.stereotype.Component;

@DemoService(name = "hehe") //使用Starters提供的类注解
@Component
public class MyDemo {

    @DemoService
    Demo demo = new Demo();

    @DemoService(name = "haha") //使用Starters提供的方法注解
    public void haha() {
    }

    @DemoService(name = "keke") //使用Starters提供的方法注解
    public void keke() {
    }
}
